<?php

class Core_Frontend_Component_Ebook_Controller_Material extends Dcmp_Component_Controller {

    public function poilistAction($id = 1 ,$page = 1) {
        $ebook = App::getModel('media/ebook_material')->load($id);
        $pois=  $ebook ->getPois()->pagination($page,$ebook->getPoiPageSize())->load();
        $road = App::getModel('foundation/road')->load($ebook->getRoadId());
        return $this->viewResult(array('ebook'=>$ebook,'pois'=>$pois,'road'=>$road));
    }
    
}